import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '@/pages/HomePage.vue';
import RestaurantList from '@/pages/RestaurantList.vue';
import UserProfile from '@/pages/UserProfile.vue';

const routes = [
    { path: '/', name: 'Home', component: HomePage },
    { path: '/restaurants', name: 'RestaurantList', component: RestaurantList },
    { path: '/user-profile', name: 'UserProfile', component: UserProfile },
];

const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;